package no.ntnu.fp.model.events;

import no.ntnu.fp.model.Employee;

@SuppressWarnings("serial")
public class EmployeeChangedEvent extends ModelEvent {

	private final Employee oldEmployee, newEmployee;

	public EmployeeChangedEvent(Object source, Employee oldEmployee, Employee newEmployee) {
		super(source);
		this.oldEmployee = oldEmployee;
		this.newEmployee = newEmployee;
	}

	public Employee getOldEmployee() {
		return oldEmployee;
	}
	
	public Employee getNewEmployee() {
		return newEmployee;
	}
}
